package designerMode.decorator;

/**
 * @author liuchaoqun
 * @date 2022/9/11
 * @Description
 */
public class Lemon extends Meratial{

    private Goods goods;

    public Lemon(Goods goods){
        this.goods = goods;
    }

    @Override
    public String getDescription() {
        return goods.getDescription() + "柠檬";
    }

    @Override
    public Integer getPrice() {
        return goods.getPrice() + 3;
    }
}
